<wxs src="../../utils/common.wxs" module="filter" />
<view class='floatView'>
    <image class="edit" wx:if='{{type}}' src="../../image/to-home.png" bindtap="turnPage"/>
    <button open-type='share' class="share">
        <image mode='scaleToFill' src="../../image/shequ/share.png" />
    </button>
</view>
<view>
  <view class="detail_header">
    <view class="header_image">
      <image  src="{{pageObj.avatarUrl}}" />
      <image mode="widthFix" src="../../image/eredar/authentication_icon_red.png" />
    </view>
    <view class="header_content">
      <view class="user_info">
        <view>
          <text>{{pageObj.nickName}}</text><image mode="widthFix" src="../../image/certified_icon.png" />
        </view>
        <view><image wx:for="{{[1,2,3,4,5]}}" mode="widthFix" src="../../image/eredar/star_icon.png" /></view>
        <view>
            <image mode="widthFix" src="../../image/eredar/position_icon_shallow.png" /><text>{{pageObj.province}}{{pageObj.city}}</text><text>粉丝：{{pageObj.followNum}}</text>
        </view>
      </view>
      <view class="header_gz" bindtap='guanZhu'>
        <view><image wx:if='{{isGuanzhu==0}}' mode="widthFix" src="../../image/eredar/plus_icon.png" />
          <text wx:if='{{isGuanzhu==0}}'>关注</text>
          <text wx:if='{{isGuanzhu==1}}'>已关注</text>
        </view>
      </view>
    </view>
  </view>
  <view class="card_box">
      <view class="card">
          <view class="card_item" bindtap='chooseType' data-type='shebei'>
              <view >{{pageObj.equipmentNum}}</view>
              <view  class='{{selectType=="shebei"?"active":""}}'>TA的设备</view>
          </view>
          <view class="card_item" bindtap='chooseType' data-type='tiezi'>
              <view >{{pageObj.articlesNum}}</view>
              <view  class='{{selectType=="tiezi"?"active":""}}'>TA的帖子</view>
          </view>
        </view>
  </view>
   
  <view class="eredar_product" wx:if="{{showShebei}}">
    <view class="product_list" wx:for="{{productList}}" wx:key="index" wx:for-item="item" item="{{item}}" bindtap="detailClick" data-code='{{item.id}}' wx:if='{{item.status==20}}'>
      <view class="product_img">
            <!-- <image mode="widthFix" src="../../image/lvyou@2x.png" /> -->

            <image    wx:if='{{item.wxEquipmentPic.length>0}}' src="{{item.wxEquipmentPic[0].url}}" />
             <image   wx:if='{{item.type==10&&item.wxEquipmentPic.length==0}}' src="http://qn.shebeib.com/11108e3e317028cf3d31fde3f3a133d.jpg" />
             <image  wx:if='{{item.type==20&&item.wxEquipmentPic.length==0}}' src="http://qn.shebeib.com/9edf66749d0f2105a59e5f2aeb201ee.jpg" />
      </view>


      <view class="product_info">
          <view>{{item.title}}</view>
          <view>
            <image mode="widthFix" src="../../image/time_icon.png" /><text>{{filter.flitTime(item.created)}}</text>
            <image mode="widthFix" src="../../image/position_gray_icon.png" /><text>{{item.city}}</text>
          </view>
          <view wx:if='{{item.price!=0}}'>{{item.price}}万</view>
          <view wx:else>面议</view>
      </view>
    </view>
  </view>
  <view class="fixed_height"></view>
 <!--  <view class="fixed_bottom">
    <view><image mode="widthFix" src="../../image/eredar/tips_icon_daren.png" /><text>请告诉TA：我是从塔塔看到的</text></view>
    <view bindtap='callPhone'>
      <image mode="widthFix" src="../../image/eredar/phone_icon_white.png" />
      <text>打电话</text></view>
  </view> -->
</view>
<view class='bbs' wx:if="{{showTiezi}}">
  <view class='item' wx:for="{{arr}}" bindtap="turnDetail" data-code='{{item.id}}'>
    <view class='info'>
      <image class="image" src="{{item.wxUser.avatarUrl}}" />
      <view class='name'>{{item.wxUser.nickName}}
        <image  wx:if="{{item.browseNum>0}}"  src="../../image/shequ/hot.png" />
        <image  wx:if="{{item.browseNum>9}}"  src="../../image/shequ/hot.png" />
        <image  wx:if="{{item.browseNum>20}}"  src="../../image/shequ/hot.png" />
      </view>
      <view class='time'>{{filter.formatTime(item.created)}}</view>
    </view>
    <view class='content'>{{item.title}}</view>
    <view class='image-list'>
      <image class="image"   wx:for='{{item.wxArticlesPic}}' src="{{item.url}}" />
    </view>
    <view class='label'>#{{item.hotTopicTypeName}}</view>
    <view class='nums'>
      <view><image class="image" src="../../image/shequ/browse.png" /><span>{{item.browseNum}}</span></view>
      <view><image class="image" src="../../image/shequ/comment.png" /><span>{{item.commentNum}}</span></view>
      <view><image class="image" src="../../image/shequ/fabulous.png" /><span>{{item.likesNum}}</span></view>
    </view>
  </view>
</view>